/*
 * @Author: 胡俊/treence
 * @Date: 2022-05-18 13:41:31
 * @LastEditors: 胡俊/treence
 * @LastEditTime: 2022-06-24 17:00:44
 * @Description: 
 * @Email: treence@gmail.com
 * @Company: 3xData
 * @youWant: add you want
 */
import globalPostRequest from '@/request/globalPostRequest.js'

// 列表
export function site_list (data, callback) {
    return globalPostRequest({
        url: '/site/list',
        method: 'get',
        data,
        callback
    })
}

// 新增
export function site_add (data, callback) {
    return globalPostRequest({
        url: '/site',
        method: 'post',
        header: {
            'content-type': 'application/json;charset=UTF-8'
        },
        data,
        callback
    })
}
// 更新
export function site_update (data, callback) {
    return globalPostRequest({
        url: '/site',
        method: 'put',
        header: {
            'content-type': 'application/json;charset=UTF-8'
        },
        data,
        callback
    })
}

// 查看
export function site_form (data, callback) {
    return globalPostRequest({
        url: '/site/byId/' + data,
        method: 'get',
        callback
    })
}

// 删除
export function site_remove (data, callback) {
    return globalPostRequest({
        url: '/site/' + data,
        method: 'delete',
        callback
    })
}